package view;


import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Component;
import java.awt.Dimension;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.SwingConstants;

import net.miginfocom.swing.MigLayout;

public class AboutCoolMail extends JDialog 
{
		
    AboutCoolMail()
    {
    	JLabel aboutLabel1;
    	JLabel aboutLabel2;
    	JLabel aboutLabel3;
    	JLabel aboutLabel4;
    	JLabel aboutLabel5;
    	JLabel aboutLabel6;
    	JLabel aboutLabel7;
    	JLabel spaceLabel1 = new JLabel(" ");
    	JLabel spaceLabel2 = new JLabel(" ");
    	
    	setSize(320, 270);
    	MigLayout layout = new MigLayout("wrap");
    	setLayout(layout);
    	
        aboutLabel1 = new JLabel("CoolMail delivered by the Best Team Ever!");         
        aboutLabel2 = new JLabel("Programmed by:");        
        aboutLabel3 = new JLabel("Sukhjinder K. Narula");
        aboutLabel4 = new JLabel("Musab Masood");
        aboutLabel5 = new JLabel("Farzana Alam");
        aboutLabel6 = new JLabel("Buthainah Aldosary");
        aboutLabel7 = new JLabel("Hadi Karesli");
        
        add( aboutLabel1 , "align center");                           
        add( aboutLabel2 , "align center");
        add( spaceLabel1 , "align center");
        add( aboutLabel3 , "align center");
        add( aboutLabel4 , "align center");
        add( aboutLabel5 , "align center");
        add( aboutLabel6 , "align center");
        add( aboutLabel7 , "align center");
        add( spaceLabel2 , "align center");
        
        JButton closeButton = new JButton("Close");
        
        closeButton.addActionListener
        (
            new ActionListener() 
            {
                public void actionPerformed(ActionEvent event) 
                {
                    dispose();
                }
            }
        );    
             
        add(closeButton, "align center");
          
        setModalityType(ModalityType.APPLICATION_MODAL);

        setTitle("About CoolMail");
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        setLocationRelativeTo(null);
        
    }
}
